<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDao/QxSqlRelationParams.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_sql_relation_params_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxSqlRelationParams.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_sql_relation_params_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_SQL_RELATION_PARAMS_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_SQL_RELATION_PARAMS_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;QtSql/qsqldatabase.h&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;QtSql/qsqlquery.h&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_join_8h.html" title="Define how to join 2 tables into SQL query (LEFT OUTER JOIN, INNER JOIN, etc...)">QxDao/QxSqlJoin.h</a>&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_save_mode_8h.html" title="To improve performance, if you know that you are just inserting or updating items in database...">QxDao/QxSqlSaveMode.h</a>&gt;</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;<a class="code" href="_qx_collection_8h.html" title="QxOrm container (keep insertion order + quick access by index + quick access by key)">QxCollection/QxCollection.h</a>&gt;</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="keyword">namespace </span>qx {
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="keyword">class </span>QxSqlRelationLinked;
<a name="l00057"></a>00057 <span class="keyword">class </span>IxSqlQueryBuilder;
<a name="l00058"></a>00058 <span class="keyword">class </span>IxSqlRelation;
<a name="l00059"></a>00059 
<a name="l00064"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html">00064</a> <span class="keyword">class </span><a class="code" href="_qx_macro_8h.html#aa569abe24f343fdc4ad5e12e156ba8a2">QX_DLL_EXPORT</a> <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a>
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">public</span>:
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a42ec865964c6a67beeda5774f22eabe4">00069</a>    <span class="keyword">typedef</span> qx_shared_ptr&lt;QxSqlRelationLinked&gt; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a42ec865964c6a67beeda5774f22eabe4">type_relation_linked_ptr</a>;
<a name="l00070"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a4a18319d2c9ba2d80b572562308ea202">00070</a>    <span class="keyword">typedef</span> QHash&lt;QString, type_relation_linked_ptr&gt; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a4a18319d2c9ba2d80b572562308ea202">type_lst_relation_linked</a>;
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">protected</span>:
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#af929ac21095f5e415abd1ecfa37f29f4">00074</a>    QVariant                         <a class="code" href="classqx_1_1_qx_sql_relation_params.html#af929ac21095f5e415abd1ecfa37f29f4" title="Current id.">m_vId</a>;                  
<a name="l00075"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aedbd80dcbb7ebae59d0e609f84234c1e">00075</a>    <span class="keywordtype">long</span>                             <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aedbd80dcbb7ebae59d0e609f84234c1e" title="Current SQL relation index.">m_lIndex</a>;               
<a name="l00076"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#afe3d91f3b4489f5c0e97d72ee148f059">00076</a>    <span class="keywordtype">long</span>                             <a class="code" href="classqx_1_1_qx_sql_relation_params.html#afe3d91f3b4489f5c0e97d72ee148f059" title="Current SQL relation owner index.">m_lIndexOwner</a>;          
<a name="l00077"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#afb5786a511a028d30ce629460d0779f4">00077</a>    <span class="keywordtype">long</span>                             <a class="code" href="classqx_1_1_qx_sql_relation_params.html#afb5786a511a028d30ce629460d0779f4" title="Current SQL query offset.">m_lOffset</a>;              
<a name="l00078"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a616aa646d1a7e47d84bcc02789f2a283">00078</a>    QString *                        <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a616aa646d1a7e47d84bcc02789f2a283" title="Current SQL query.">m_sql</a>;                  
<a name="l00079"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7d06904b6e7c7253c93c3c22ddfd7ef5">00079</a>    <a class="code" href="classqx_1_1_ix_sql_query_builder.html" title="qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database...">IxSqlQueryBuilder</a> *              <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7d06904b6e7c7253c93c3c22ddfd7ef5" title="Current SQL query builder.">m_builder</a>;              
<a name="l00080"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a98cb45ad7d82db71f06b4262e3704cf0">00080</a>    QSqlQuery *                      <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a98cb45ad7d82db71f06b4262e3704cf0" title="Current SQL query connected to database.">m_query</a>;                
<a name="l00081"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7a5438b12c2fbf66e912dde4d755cef8">00081</a>    QSqlDatabase *                   <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7a5438b12c2fbf66e912dde4d755cef8" title="Current SQL database connexion.">m_database</a>;             
<a name="l00082"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ada496b050575e96e52fe8acf61a1ec30">00082</a>    <span class="keywordtype">void</span> *                           <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ada496b050575e96e52fe8acf61a1ec30" title="Owner to current object to resolve input/output.">m_pOwner</a>;               
<a name="l00083"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc44507a840073caab1f081c9e140a45">00083</a>    <a class="code" href="structqx_1_1dao_1_1sql__join.html#a9d0c04a67abd8ff7c55a45ae4cc00ff3">qx::dao::sql_join::join_type</a>     <a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc44507a840073caab1f081c9e140a45" title="Current join type to build SQL query : LEFT OUTER JOIN, INNER JOIN, etc...">m_eJoinType</a>;            
<a name="l00084"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a546297e04c18f1f5274fd14a5db8a0d2">00084</a>    <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a4a18319d2c9ba2d80b572562308ea202">type_lst_relation_linked</a> *       <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a546297e04c18f1f5274fd14a5db8a0d2" title="Current list of relations used by qx::QxSqlRelationLinked class.">m_pRelationX</a>;           
<a name="l00085"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aac5ac8c63309789ec7ec20ff64883620">00085</a>    QString                          <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aac5ac8c63309789ec7ec20ff64883620" title="Current SQL table alias : useful for relationships defined in base class.">m_sTableAlias</a>;          
<a name="l00086"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ae5471898e9766bec5f1ce986a7e5be33">00086</a>    <a class="code" href="structqx_1_1dao_1_1save__mode.html#a597b360b936ecba23b0137b14940897c">qx::dao::save_mode::e_save_mode</a>  <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ae5471898e9766bec5f1ce986a7e5be33" title="Used to improve performance, if you know that you are just inserting or updating items in database...">m_eSaveMode</a>;            
<a name="l00087"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a69d8394c5a304eb35bc6a3777e5c8506">00087</a>    <span class="keywordtype">bool</span>                             <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a69d8394c5a304eb35bc6a3777e5c8506" title="Recursive mode to iterate over each level of relationship.">m_bRecursiveMode</a>;       
<a name="l00088"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ace119085419359ad55597192e632c360">00088</a>    QSet&lt;void *&gt;                     <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ace119085419359ad55597192e632c360" title="Used by recursive process to avoid infinite loop.">m_lstRecursiveItems</a>;    
<a name="l00089"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6c619562cfa21a4e67b41f94900bb15c">00089</a>    QPair&lt;QSet&lt;QString&gt;, <span class="keywordtype">long</span>&gt; *     <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6c619562cfa21a4e67b41f94900bb15c" title="List of relation columns to fetch (syntax : my_relation { column_1, column_2, etc... }), if empty then fetch all columns.">m_pColumns</a>;             
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="keyword">public</span>:
<a name="l00092"></a>00092 
<a name="l00093"></a>00093    <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a>();
<a name="l00094"></a>00094    <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a>(<span class="keywordtype">long</span> lIndex, <span class="keywordtype">long</span> lOffset, QString * sql, <a class="code" href="classqx_1_1_ix_sql_query_builder.html" title="qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database...">IxSqlQueryBuilder</a> * builder, QSqlQuery * query, <span class="keywordtype">void</span> * pOwner);
<a name="l00095"></a>00095    <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a>(<span class="keywordtype">long</span> lIndex, <span class="keywordtype">long</span> lOffset, QString * sql, <a class="code" href="classqx_1_1_ix_sql_query_builder.html" title="qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database...">IxSqlQueryBuilder</a> * builder, QSqlQuery * query, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QVariant &amp; vId);
<a name="l00096"></a>00096    <span class="keyword">virtual</span> ~<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a>();
<a name="l00097"></a>00097 
<a name="l00098"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aace7e415830d94541d68e0817fd0dbe6">00098</a>    <span class="keyword">inline</span> QVariant <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aace7e415830d94541d68e0817fd0dbe6">id</a>()<span class="keyword"> const                               </span>{ <span class="keywordflow">return</span> m_vId; }
<a name="l00099"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a9e4cc344e92f94c091fe3239e8c9606b">00099</a>    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a9e4cc344e92f94c091fe3239e8c9606b">index</a>()<span class="keyword"> const                                </span>{ <span class="keywordflow">return</span> m_lIndex; }
<a name="l00100"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a74d1d10b37d8b26711ce539459d14efe">00100</a>    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a74d1d10b37d8b26711ce539459d14efe">indexOwner</a>()<span class="keyword"> const                           </span>{ <span class="keywordflow">return</span> m_lIndexOwner; }
<a name="l00101"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc497ede45c2dae2ece234e38f7b13df">00101</a>    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc497ede45c2dae2ece234e38f7b13df">offset</a>()<span class="keyword"> const                               </span>{ <span class="keywordflow">return</span> m_lOffset; }
<a name="l00102"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a877626a15f4abab590128b078c18e5d9">00102</a>    <span class="keyword">inline</span> QString &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a877626a15f4abab590128b078c18e5d9">sql</a>()                                   { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_sql); <span class="keywordflow">return</span> (* m_sql); }
<a name="l00103"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a0908323174281269db8f5555722e9cc5">00103</a>    <span class="keyword">inline</span> <span class="keyword">const</span> QString &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a0908323174281269db8f5555722e9cc5">sql</a>()<span class="keyword"> const                       </span>{ <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_sql); <span class="keywordflow">return</span> (* m_sql); }
<a name="l00104"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a004c29f4ef96ed2891b9f8d1d12e27b8">00104</a>    <span class="keyword">inline</span> QSqlQuery &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a004c29f4ef96ed2891b9f8d1d12e27b8">query</a>()                               { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_query); <span class="keywordflow">return</span> (* m_query); }
<a name="l00105"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#abf4d35d232d300a4d8b7e544477e67fd">00105</a>    <span class="keyword">inline</span> <span class="keyword">const</span> QSqlQuery &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#abf4d35d232d300a4d8b7e544477e67fd">query</a>()<span class="keyword"> const                   </span>{ <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_query); <span class="keywordflow">return</span> (* m_query); }
<a name="l00106"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7f7169ed967f39a124e9aced8592620a">00106</a>    <span class="keyword">inline</span> QSqlDatabase &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7f7169ed967f39a124e9aced8592620a">database</a>()                         { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_database); <span class="keywordflow">return</span> (* m_database); }
<a name="l00107"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ae3308ef3de216a41c3606ee7e92fab44">00107</a>    <span class="keyword">inline</span> <span class="keyword">const</span> QSqlDatabase &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ae3308ef3de216a41c3606ee7e92fab44">database</a>()<span class="keyword"> const             </span>{ <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_database); <span class="keywordflow">return</span> (* m_database); }
<a name="l00108"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">00108</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_ix_sql_query_builder.html" title="qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database...">IxSqlQueryBuilder</a> &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6a0cec2ed28e85269478cb6e0bac65c7">builder</a>()                     { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_builder); <span class="keywordflow">return</span> (* m_builder); }
<a name="l00109"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa746584e45547c9ae56dcc1c6b365dda">00109</a>    <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_sql_query_builder.html" title="qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database...">IxSqlQueryBuilder</a> &amp; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa746584e45547c9ae56dcc1c6b365dda">builder</a>()<span class="keyword"> const         </span>{ <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(m_builder); <span class="keywordflow">return</span> (* m_builder); }
<a name="l00110"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">00110</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> * <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">owner</a>()<span class="keyword"> const                              </span>{ <span class="keywordflow">return</span> m_pOwner; }
<a name="l00111"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a417d341f86c2a8b9a1f8cb842f837a3b">00111</a>    <span class="keyword">inline</span> <a class="code" href="structqx_1_1dao_1_1sql__join.html#a9d0c04a67abd8ff7c55a45ae4cc00ff3">qx::dao::sql_join::join_type</a> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a417d341f86c2a8b9a1f8cb842f837a3b">joinType</a>()<span class="keyword"> const     </span>{ <span class="keywordflow">return</span> m_eJoinType; }
<a name="l00112"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a78bc1c49214f1681b0b26ecf31e42b4b">00112</a>    <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a4a18319d2c9ba2d80b572562308ea202">type_lst_relation_linked</a> * <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a78bc1c49214f1681b0b26ecf31e42b4b">relationX</a>()<span class="keyword"> const      </span>{ <span class="keywordflow">return</span> m_pRelationX; }
<a name="l00113"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa2ce6beda7a522be39765934e35749ed">00113</a>    <span class="keyword">inline</span> QString <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa2ce6beda7a522be39765934e35749ed">getTableAlias</a>()<span class="keyword"> const                     </span>{ <span class="keywordflow">return</span> m_sTableAlias; }
<a name="l00114"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a521ccbe660f9f7aa405ed256d52e59be">00114</a>    <span class="keyword">inline</span> <a class="code" href="structqx_1_1dao_1_1save__mode.html#a597b360b936ecba23b0137b14940897c">qx::dao::save_mode::e_save_mode</a> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a521ccbe660f9f7aa405ed256d52e59be">saveMode</a>()<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> m_eSaveMode; }
<a name="l00115"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a586558db71d817109e09818957f319da">00115</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a586558db71d817109e09818957f319da">recursiveMode</a>()<span class="keyword"> const                        </span>{ <span class="keywordflow">return</span> m_bRecursiveMode; }
<a name="l00116"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a9280c3bb10deca509346caf9386c0b68">00116</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a9280c3bb10deca509346caf9386c0b68">existRecursiveItem</a>(<span class="keywordtype">void</span> * p)<span class="keyword"> const           </span>{ <span class="keywordflow">return</span> m_lstRecursiveItems.contains(p); }
<a name="l00117"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a8b1ca89fad146cdea194c012fc964cc8">00117</a>    <span class="keyword">inline</span> QSet&lt;QString&gt; <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a8b1ca89fad146cdea194c012fc964cc8">getColumns</a>()<span class="keyword"> const                  </span>{ <span class="keywordflow">return</span> (m_pColumns ? m_pColumns-&gt;first : QSet&lt;QString&gt;()); }
<a name="l00118"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aabae131097d33ab208c7d36d89094de5">00118</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aabae131097d33ab208c7d36d89094de5">checkColumns</a>(<span class="keyword">const</span> QString &amp; s)<span class="keyword"> const        </span>{ <span class="keywordflow">return</span> (! m_pColumns || m_pColumns-&gt;first.isEmpty() || m_pColumns-&gt;first.contains(s)); }
<a name="l00119"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aeddd6dbb858ae883d9677f4916a39e9d">00119</a>    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aeddd6dbb858ae883d9677f4916a39e9d">getColumnsCount</a>()<span class="keyword"> const                      </span>{ <span class="keywordflow">return</span> (m_pColumns ? m_pColumns-&gt;first.count() : 0); }
<a name="l00120"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a26dd57796cd15c13f7ab7af4eef04850">00120</a>    <span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a26dd57796cd15c13f7ab7af4eef04850">getColumnsOffset</a>()<span class="keyword"> const                     </span>{ <span class="keywordflow">return</span> (m_pColumns ? m_pColumns-&gt;second : 0); }
<a name="l00121"></a>00121 
<a name="l00122"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aff3d151409b394cafab6edd02508f808">00122</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aff3d151409b394cafab6edd02508f808">setId</a>(<span class="keyword">const</span> QVariant &amp; vId)                     { m_vId = vId; }
<a name="l00123"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ac700ad67f40cb13e437eb240cb1905f6">00123</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ac700ad67f40cb13e437eb240cb1905f6">setIndex</a>(<span class="keywordtype">long</span> lIndex)                           { m_lIndex = lIndex; }
<a name="l00124"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a52b38457e3acf39299cc9f5d6e443835">00124</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a52b38457e3acf39299cc9f5d6e443835">setIndexOwner</a>(<span class="keywordtype">long</span> lIndex)                      { m_lIndexOwner = lIndex; }
<a name="l00125"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a13d36ae95132b41ce06f4ec8b922f1c0">00125</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a13d36ae95132b41ce06f4ec8b922f1c0">setOffset</a>(<span class="keywordtype">long</span> lOffset)                         { m_lOffset = lOffset; }
<a name="l00126"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a8dc3a490f81a244a4f20045e81b3e9d3">00126</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a8dc3a490f81a244a4f20045e81b3e9d3">setSql</a>(QString * sql)                           { m_sql = sql; }
<a name="l00127"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa620afd8194ef69f7cfa218c2f3929fd">00127</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa620afd8194ef69f7cfa218c2f3929fd">setBuilder</a>(<a class="code" href="classqx_1_1_ix_sql_query_builder.html" title="qx::IxSqlQueryBuilder : common interface to build SQL queries to communicate with database...">IxSqlQueryBuilder</a> * builder)         { m_builder = builder; }
<a name="l00128"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#abd6abf852e79d0be5f56f2048e883671">00128</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#abd6abf852e79d0be5f56f2048e883671">setQuery</a>(QSqlQuery * query)                     { m_query = query; }
<a name="l00129"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a3801d64df57df38cd611ddde3b50661e">00129</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a3801d64df57df38cd611ddde3b50661e">setDatabase</a>(QSqlDatabase * database)            { m_database = database; }
<a name="l00130"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a053d86dd38e5a3298e64b02ce77935fb">00130</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a053d86dd38e5a3298e64b02ce77935fb">setOwner</a>(<span class="keywordtype">void</span> * pOwner)                         { m_pOwner = pOwner; }
<a name="l00131"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ad531d5c5f8eb15cc1f26343ed81ce2fb">00131</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ad531d5c5f8eb15cc1f26343ed81ce2fb">setJoinType</a>(<a class="code" href="structqx_1_1dao_1_1sql__join.html#a9d0c04a67abd8ff7c55a45ae4cc00ff3">qx::dao::sql_join::join_type</a> e)     { m_eJoinType = e; }
<a name="l00132"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a34550aba008c8a7eebabc8e9ffe0ac1a">00132</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a34550aba008c8a7eebabc8e9ffe0ac1a">setRelationX</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a4a18319d2c9ba2d80b572562308ea202">type_lst_relation_linked</a> * p)      { m_pRelationX = p; }
<a name="l00133"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a68bea656336c092d3d206f8931074a13">00133</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a68bea656336c092d3d206f8931074a13">setTableAlias</a>(<span class="keyword">const</span> QString &amp; s)                { m_sTableAlias = s; }
<a name="l00134"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#af21e9ede09701bc10ebeac18c425992e">00134</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#af21e9ede09701bc10ebeac18c425992e">setSaveMode</a>(<a class="code" href="structqx_1_1dao_1_1save__mode.html#a597b360b936ecba23b0137b14940897c">qx::dao::save_mode::e_save_mode</a> e)  { m_eSaveMode = e; }
<a name="l00135"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6296bf020c7e714710898d44fe8d337e">00135</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a6296bf020c7e714710898d44fe8d337e">setRecursiveMode</a>(<span class="keywordtype">bool</span> b)                        { m_bRecursiveMode = b; }
<a name="l00136"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#a8a765259b6057a4de92074b46cc3df9c">00136</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#a8a765259b6057a4de92074b46cc3df9c">insertRecursiveItem</a>(<span class="keywordtype">void</span> * p)                   { <span class="keywordflow">if</span> (p) { m_lstRecursiveItems.insert(p); } }
<a name="l00137"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa0fbcd3da0952beffaf390cab75aa46f">00137</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#aa0fbcd3da0952beffaf390cab75aa46f">setColumns</a>(QPair&lt;QSet&lt;QString&gt;, <span class="keywordtype">long</span>&gt; * p)      { m_pColumns = p; }
<a name="l00138"></a><a class="code" href="classqx_1_1_qx_sql_relation_params.html#ae353a06f18b7101e04fac0474ef60602">00138</a>    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation_params.html#ae353a06f18b7101e04fac0474ef60602">setColumnsOffset</a>(<span class="keywordtype">long</span> l)                        { <span class="keywordflow">if</span> (m_pColumns) { m_pColumns-&gt;second = l; } }
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 };
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 } <span class="comment">// namespace qx</span>
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 <span class="preprocessor">#endif // _QX_SQL_RELATION_PARAMS_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_sql_relation_params_8h.html">QxSqlRelationParams.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
